/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idea.icci.explorer;


import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.NbBundle;
import static idea.icci.explorer.Bundle.*;
import java.util.List;
import javax.swing.Action;
import org.openide.util.Utilities;


/**
 *
 * @author rejun001
 */
public class ICustomContentItemRootNode extends AbstractNode
{
    @NbBundle.Messages("CTRL_RootName=custom_content_items")
    public ICustomContentItemRootNode(Children children)
    {
        super(children);
        setDisplayName(CTRL_RootName());       
    }
    
    @Override
    public Action[] getActions(boolean context) {
        List<? extends Action> actionsForCustomContentItems = Utilities.actionsForPath( "Actions/CustomContentItems");
        return actionsForCustomContentItems.toArray(new Action[actionsForCustomContentItems.size()]);
    }
}
